<?php
namespace app\admin\common\model;
use think\Model;
class Department extends Model
{
    protected $pk='id';
    protected $table='ht_department';
    
    
    public function getStatusAttr($value)
    {
        $status=[0=>'禁用',1=>'启用'];
        return $status[$value];
    }
}

